import http from '../network/http'

export default {
  //添加小节信息
  addChapterVideo(videoInfo) {
    return http({
      url: `/xiyun/service/subject/video/addChapterVideo`,
      method: 'post',
      data: videoInfo
    })
  },
  //根据小节id获取小节信息
  getChapterVideoInfo(videoId){
    return http({
      url: `/xiyun/service/subject/video/getChapterVideoInfo/${videoId}`,
      method: 'get'
    })
  },
  //修改小节信息
  updateChapterVideo(videoInfo){
    return http({
      url: `/xiyun/service/subject/video/updateChapterVideo`,
      method: 'post',
      data: videoInfo
    })
  },
  //删除小节信息
  delChapterVideo(videoId){
    return http({
      url: `/xiyun/service/subject/video/delChapterVideo/${videoId}`,
      method: 'delete'
    })
  },
  //删除云端视频
  delAliVideo(videoId){
    return http({
      url: `/xiyun/vod/video/delVideo/${videoId}`,
      method: 'delete'
    })
  }
}
